package com.shandiangou.crm.service.impl;


import com.shandiangou.crm.dao.CrmDao;
import com.shandiangou.crm.model.vo.DataRightQueryVo;
import com.shandiangou.crm.model.vo.DataRightVo;
import com.shandiangou.crm.model.vo.OrderVo;
import com.shandiangou.crm.service.CrmService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * CRM操作业务层
 */
@Service
public class CrmServiceImpl implements CrmService {

    @Autowired
    private CrmDao crmDao;


    @Override
    public List<Map> listDataRightList(DataRightQueryVo dataRightQueryVo) {
        return crmDao.listDataRightList(dataRightQueryVo);
    }

    @Override
    public void insertDataRight(DataRightVo dataRightVo) {
        crmDao.insertDataRight(dataRightVo);
    }

    @Override
    public void deleteDataRight(String id) {
        crmDao.deleteDataRight(id);
    }

    @Override
    public void updateDataRight(DataRightVo dataRightVo) {
        crmDao.updateDataRight(dataRightVo);
    }

    @Override
    public List<Map> listRightValue(String rightType, Long mobile) {
        return crmDao.listRightValue(rightType,mobile);
    }
}
